package com.jell.purchase.model;

import java.io.Serializable;

/**
 * crm_order_goods
 */
public class OrderGoodsDo implements Serializable {
    /**
     * crm_order_goods.id
     */
    private Integer id;

    /**
     * crm_order_goods.outroom_order_id
     */
    private Integer outroomOrderId;

    /**
     * crm_order_goods.goods_id
     */
    private Integer goodsId;

    /**
     * crm_order_goods.nums
     */
    private Integer nums;

    /**
     * 状态(Y:有效;N:无效)
     * crm_order_goods.sts
     */
    private String sts;

    /**
     * crm_order_goods
     */
    private static final long serialVersionUID = 1L;

    /**
     * crm_order_goods.id
     * @return the value of crm_order_goods.id
     */
    public Integer getId() {
        return id;
    }

    /**
     * crm_order_goods.id
     * @param id the value for crm_order_goods.id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * crm_order_goods.outroom_order_id
     * @return the value of crm_order_goods.outroom_order_id
     */
    public Integer getOutroomOrderId() {
        return outroomOrderId;
    }

    /**
     * crm_order_goods.outroom_order_id
     * @param outroomOrderId the value for crm_order_goods.outroom_order_id
     */
    public void setOutroomOrderId(Integer outroomOrderId) {
        this.outroomOrderId = outroomOrderId;
    }

    /**
     * crm_order_goods.goods_id
     * @return the value of crm_order_goods.goods_id
     */
    public Integer getGoodsId() {
        return goodsId;
    }

    /**
     * crm_order_goods.goods_id
     * @param goodsId the value for crm_order_goods.goods_id
     */
    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    /**
     * crm_order_goods.nums
     * @return the value of crm_order_goods.nums
     */
    public Integer getNums() {
        return nums;
    }

    /**
     * crm_order_goods.nums
     * @param nums the value for crm_order_goods.nums
     */
    public void setNums(Integer nums) {
        this.nums = nums;
    }

    /**
     * crm_order_goods.sts
     * @return the value of crm_order_goods.sts
     */
    public String getSts() {
        return sts;
    }

    /**
     * crm_order_goods.sts
     * @param sts the value for crm_order_goods.sts
     */
    public void setSts(String sts) {
        this.sts = sts == null ? null : sts.trim();
    }

    /**
     * crm_order_goods
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OrderGoodsDo other = (OrderGoodsDo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOutroomOrderId() == null ? other.getOutroomOrderId() == null : this.getOutroomOrderId().equals(other.getOutroomOrderId()))
            && (this.getGoodsId() == null ? other.getGoodsId() == null : this.getGoodsId().equals(other.getGoodsId()))
            && (this.getNums() == null ? other.getNums() == null : this.getNums().equals(other.getNums()))
            && (this.getSts() == null ? other.getSts() == null : this.getSts().equals(other.getSts()));
    }

    /**
     * crm_order_goods
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOutroomOrderId() == null) ? 0 : getOutroomOrderId().hashCode());
        result = prime * result + ((getGoodsId() == null) ? 0 : getGoodsId().hashCode());
        result = prime * result + ((getNums() == null) ? 0 : getNums().hashCode());
        result = prime * result + ((getSts() == null) ? 0 : getSts().hashCode());
        return result;
    }
}